/**
 *
100
10
7
main define2.c 30 
gloab_a=100
sqrt(gloab_a)=10.000000
S = 100

 */

#include<stdio.h>
#include<math.h>
#include "head.h"

#define N 10
#define M (3+2)
#define Q 3+2
#define _DEBUG_
#define S 100
int main(int argc, const char *argv[])
{
	int a[N] = {0};
	a[0] = 100;
	printf("%d\n", a[0]);
	printf("%d\n", M * 2);
	printf("%d\n", Q * 2);
	//测试 条件编译
#ifdef _DEBUG_
	printf("%s %s %d \n",__FUNCTION__, __FILE__, __LINE__);
#endif
	//测试自定义头文件
	printf("gloab_a=%d\n",gloab_a);
	printf("sqrt(gloab_a)=%lf\n",sqrt(gloab_a));
	//测试#undef的宏定义指令
#undef S
#define S 100
	printf("S = %d\n",S);
	return 0;
}
